package com.example.administrator.onepagelibrary.dagger.component;

import com.example.administrator.commonlibrary.dagger.component.OverallSituationComponent;
import com.example.administrator.onepagelibrary.dagger.module.ViewModule;
import com.example.administrator.onepagelibrary.dagger.module.ViewParameterModule;
import com.example.administrator.onepagelibrary.onebase.MainActivity;
import com.example.administrator.onepagelibrary.view.activity.HuadongActivity;

import dagger.Component;

/**
 * 作者：wang_hong_wei
 * 创建时间：2018/9/15
 * 描述：实例化已经在 基类中封装，把之前实例化的代码写入 NewInject中即可，直接调用对象即可
 */

@MSingleton
@Component(modules = {ViewModule.class,ViewParameterModule.class},dependencies = OverallSituationComponent.class)
public interface ActivityComponent {
    void inject(MainActivity mainActivity);
    void inject(HuadongActivity huadongActivity);
}
